package string;

public class MissingChar {
public static void main(String[] args){
	String str = "abbcasefvcde";
	String substr = "bsfd";
	findMissingChar(str, substr);
}

static void findMissingChar(String str, String substr){
	int i = 0; 
	int j = 0;
	while(j < substr.length() && i < str.length()){
		if(str.charAt(i) == substr.charAt(j)){
			i++;
			j++;
		}
		else{
			System.out.print(i + " : ");
			i++;
		}
	}
	while(i < str.length()){
		System.out.print(i + " : ");
		i++;
	}
}
}
